import axiosServer from '../utils/request'
//获取列表
export const GetSuibiList = (userID) => {
  return axiosServer({
    method: 'get',
    url: '/api/suibi/sblist',
    params: { userID },
  })
}
//添加随笔
export const tianjiasuibi = (userID,suibitext) => {
  return axiosServer({
    method: 'post',
    url: '/api/suibi/add',
    data: { userID,suibitext },
  })
}
//删除随笔
export const gotodeletesuibi = (_id) => {
  return axiosServer({
    method: 'get',
    url: '/api/suibi/delete',
    params: {_id},
  })
}
